<div class="set-goods-call-back-buff goodsmanager">
	<div class="nav">
		<div class="nav-li focus">商品支付回调地址管理</div>
	</div>
	<hr />

	<div class="goods_list">
		<table>
			<thead>
				<td class="logo">缩略图</td>
				<td class="name">名称</td>
				<td class="number">编号</td>
				<td class="url">回调地址</td>
			</thead>
			{{#each goods}}
			<tr>
				<td><img bind-src="{{preview_img_url}}?imageView/1/w/25/h/25" alt="{{goods_name}}的缩略图"></td>
				<td><a href="{{$Top.bus_loginer.url}}/goods-details.html?id={{_id}}">{{goods_name}}</a></td>
				<td>{{_id}}</td>
				<td>
{{#if $Private.$Cache.update_cb_url}}
	URL地址：
	<input type="text" class="android" value="{{cb_url_buff.info.cb_url}}" bind-input="{{'$Private.$Cache.cb_url'}}">
	<br>
	内置参数：<input type="text" class="android" value="{{cb_url_buff.info.args}}" bind-input="{{'$Private.$Cache.args'}}">
	<br>
	<br>
	<button event-click="{{'$Top.$Event.bus.confirm_update_goods_cb_url'}}">完成</button>
	<button event-click="{{'$Top.$Event.bus.cancel_update_goods_cb_url'}}">取消</button>
{{#else}}
	{{#if cb_url_buff.info.cb_url}}
		<p>URL地址：{{cb_url_buff.info.cb_url}}</p>
		<p>内置参数：{{#if cb_url_buff.info.args}}{{cb_url_buff.info.args}}{{#else}}<i>无绑定</i>{{/if}}</p>
		<button event-click="{{'$Top.$Event.bus.to_update_goods_cb_url'}}">修改</button>
	{{#else}}
		<i>未设定</i><button event-click="{{'$Top.$Event.bus.to_update_goods_cb_url'}}">初始化</button>
	{{/if}}
{{/if}}
				</td>
			</tr>
			{{/each}}
		</table>

		<pagination
		 id="turn-page"
		 page-info="$Cache.bus.goods.page_info"
		 ></pagination>
	</div>
	
</div>